package com.sky.service.impl;

import com.sky.properties.FileUploadProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FileUploadService {
    private final FileUploadProperties fileUploadProperties;

    @Autowired
    public FileUploadService(FileUploadProperties fileUploadProperties) {
        this.fileUploadProperties = fileUploadProperties;
    }

    public String getUploadPath(){
        return fileUploadProperties.getUploadDir();
    }
}
